<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ui_Processes.aspx.cs" Inherits="Private_Config_Workflow_ui_Processes" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
	<link href="./localstyle.css" rel="stylesheet" type="text/css" />

	<script language="javascript">
	function ConfirmDelete()
	{
		if( confirm("Are you sure you want to delete this process ?")) return true;
		return false;
	}
	</script>
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:Section runat="server">
<Flux:ShadePadBox runat="server" CssClass="infoarea">
	<asp:Label runat="server" ID="labHandler" CssClass="info" /><br/>
	<asp:Label runat="server" ID="labDefinition" CssClass="info" />
</Flux:ShadePadBox>
</Flux:Section>

<Flux:Section runat="server" Title="Data">
<Flux:StandardDataGrid runat="server" ID="datagrid" DataKeyField="PK_ID" ClickRowSelect="False" AllowPaging="false">
	<Columns>
		<asp:BoundColumn DataField="ProcessName" ReadOnly="True" HeaderText="Process"></asp:BoundColumn>
		<asp:BoundColumn DataField="Rank" ReadOnly="True" HeaderText="Rank"></asp:BoundColumn>
		<asp:TemplateColumn HeaderText="Options">
		<ItemTemplate>
			<asp:LinkButton id="btnEdit" Runat="server" CssClass="SafeLink" CommandName="ItemEdit">[Edit]</asp:LinkButton>
			<asp:LinkButton ID="btnDelete" Runat="server" CssClass="DangerLink" CommandName="ItemDelete">[Delete]</asp:LinkButton>
		</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
</Flux:StandardDataGrid>
</Flux:Section>

<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button Runat="server" CssClass="button" ID="btnAddNew" Text="Add new process" OnClick="btnAddNew_Click"/>
	<asp:Button runat="server" CssClass="button" ID="btnBack" Text="Back" OnClick="btnBack_Click" CausesValidation="False"/>
</Flux:PadBox>
</Flux:Section>

</Flux:HostTable>
</form>
</body>
</html>
